how to contain an image within a div

84

.cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    overflow: hidden;
}

Comments

Submit
0 Comments